// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: rgba(#222, 0.5);
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
  vertical-align: middle;
}

.el-upload__input {
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}
// 自定义样式
.el-button {
  &:not(.is-circle) {
    min-width: 100px;
  }
  &.el-button--mini {
    min-width: auto;
  }
  &.el-button--text {
    min-width: initial;
    &.el-button--medium {
      padding: 0;
    }
  }
}
.el-form-item {
  margin-bottom: 28px;
  // 必填·*·符号
  &.is-required:not(.is-no-asterisk) > .el-form-item__label {
    &::before {
      display: none;
    }
    &::after {
      content: "*";
      padding-left: 4px;
    }
  }
}
.el-date-editor {
  // 首尾图标
  .el-input__icon {
    width: 28px;
    height: 28px;
    line-height: 28px;
    // background-color: #ffffff;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.04);
    border-radius: 50%;
  }
  .el-range__icon,
  .el-icon-circle-close {
    background-color: #ffffff;
  }
  .el-range-input {
    background-color: transparent;
  }
}
.el-input {
  .el-input__count .el-input__count-inner {
    padding-right: 15px;
    background-color: transparent;
  }
  .el-input__prefix,
  .el-input__suffix {
    display: flex;
    align-items: center;
  }
  // input框首尾图标
  .el-input__icon {
    width: 28px;
    height: 28px;
    line-height: 28px;
    background-color: #ffffff;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.04);
    border-radius: 50%;
  }
  .el-select__caret {
    font-weight: bold;
  }
  // 实际input框
  .el-input__inner {
    border-radius: 18px;
    padding: 0 20px;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    &:focus {
      background-color: #fff;
      // & + .el-input__suffix {
      //   .el-input__icon {
      //     border: 1px solid $themeColor;
      //   }
      // }
    }
  }
  // 图标在首
  &.el-input--prefix .el-input__inner {
    padding-left: 40px;
  }
  // 图标在尾
  &.el-input--suffix .el-input__inner {
    padding-right: 40px;
  }
  // 尾部按钮
  &.el-input-group--append .el-input__inner {
    padding-right: 80px;
  }
  .el-input-group__append {
    display: block;
    padding: 0;
    width: auto;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translate(0, -50%);
    background-color: transparent;
    border: none;
  }
  button.el-button {
    margin: 0;
    padding: 0;
    min-width: initial;
    width: 70px;
    height: 28px;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.04);
    color: #7691bd;
    font-size: 16px;
    [class^="cloud-"] {
      font-size: 10px;
      margin-right: 2px;
    }
  }
}
.el-checkbox {
  height: 40px;
  display: flex;
  align-items: center;
  .el-checkbox__inner {
    display: flex;
    &::after {
      top: 2px;
      left: 5px;
      font-weight: bold;
    }
  }
  .el-checkbox__label {
    vertical-align: middle;
  }
}
.el-radio-group {
  display: flex;
  flex-wrap: wrap;
}
.el-radio {
  height: 40px;
  display: flex;
  align-items: center;
  .el-radio__inner {
    display: flex; // 修复 el-radio__input 与 el-radio__inner 高度不统一
    &::after {
      width: 13px;
      height: 13px;
      transition: all 0.15s ease-in;
    }
  }
  .el-radio__label {
    // vertical-align: middle;
  }
  &.is-bordered .el-radio__inner::after {
    width: 6px;
    height: 6px;
  }
  .is-checked .el-radio__inner {
    &::after {
      // background-color: $themeColor;
    }
  }
  &.is-bordered {
    justify-content: center;
  }
}
.el-dialog {
  border-radius: 24px;
  width: 666px;
  .el-dialog__header {
    height: 80px;
    padding: 32px 56px 0;
    position: relative;
    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 56px;
      right: 56px;
      height: 2px;
      background-color: #edeff5;
    }
  }
  .el-dialog__title {
    color: #7691bd;
    font-size: 24px;
    font-weight: bold;
  }
  .el-dialog__headerbtn {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    &:hover {
      background-color: #e8ebf3;
    }
  }
  .el-dialog__body {
    padding: 28px 56px 24px;
    position: relative;
  }
  .el-dialog__footer {
    padding: 0px 56px 40px;
    .el-button {
      min-width: 120px;
      height: 40px;
      padding: 0;
      font-size: 18px;
      border-radius: 20px;
    }
  }

  .el-form-item__label,
  .el-form-item__content {
    font-size: 20px; // 字号需统一，label宽度、content左间距由其决定
  }
  .el-form-item__label {
    font-weight: normal;
  }
  .el-form-item__content {
    line-height: initial;
  }
  .el-input__inner {
    font-size: 16px;
  }
  .el-textarea__inner {
    height: 120px;
    background-color: #edeff5;
    padding: 10px 20px;
  }
  .el-input__count {
    background-color: transparent;
  }

  .el-radio {
    // 带有边框的单选框
    &.is-bordered {
      margin-right: 0;
      background-color: #f8f8fe;
      padding: 0 10px;
      font-size: 16px;
      min-width: 100px;
      text-align: center;
      box-sizing: border-box;
      & + .el-radio {
        margin-left: 12px;
      }
      &.is-checked {
        background-color: #fff;
      }
      .el-radio__inner {
        display: none;
      }
      .el-radio__label {
        padding-left: 0;
      }
    }
  }
}
.el-message-box {
  min-width: 666px;
  border-radius: 24px;
  &__header,
  &__content,
  &__btns {
    padding-left: 56px;
    padding-right: 56px;
  }
  &__close {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    &:hover {
      background-color: #e8ebf3;
    }
  }
  &__header {
    height: 72px;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #222222;
    font-size: 20px;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 56px;
      right: 56px;
      height: 2px;
      background-color: #edeff5;
    }
  }
  &__title {
    padding-left: 26px;
  }
  &__content {
    padding-top: 0;
    padding-bottom: 30px;
  }
  &__container {
    padding-top: 26px;
  }
  // 图标
  &__status {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 18px !important;
    transform: translateY(-42px);
  }
  &__message {
    padding-left: 0 !important;
    b {
      // color: $themeColor;
    }
  }
  &__btns {
    padding-bottom: 30px;
    .el-button {
      min-width: 120px;
      height: 40px;
      font-size: 18px;
      border-radius: 20px;
    }
  }
}
.el-message {
  min-width: 476px;
  height: 60px;
  font-size: 20px;
  &.el-message--success {
    background-color: #45cd5c;
    border-color: #45cd5c;
    border-radius: 66px;
    box-shadow: 0px 0px 24px rgba(69, 205, 92, 0.5);
    .el-message__icon,
    .el-message__content {
      color: #fff;
    }
  }
  // &.el-message--error {
  //   min-width: 610px;
  //   background-color:#ff9b4f;
  //   border-radius:18px;
  //   box-shadow:0px 0px 24px rgba(255, 155, 79, 0.5);
  //   .el-message__icon,
  //   .el-message__content {
  //     color: #fff;
  //   }
  // }
}

.el-card {
  // border-radius: $radius;
  padding: 16px 0 28px;
  &.is-always-shadow {
    box-shadow: 4px 8px 12px rgba(0, 24, 119, 0.02);
  }
  .el-card__header {
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    border-color: transparent;
  }
  .el-card__body {
    padding: 0 28px;
  }
}

.el-pagination {
  button,
  span:not([class*="suffix"]) {
    // font-size: 16px;
  }
  &.is-background .el-pager li {
    font-weight: bold;
    border-radius: 50%;
    background-color: transparent;
  }
  .el-input__inner {
    padding: 0 3px;
  }
}
.el-divider {
  margin: 28px 0;
}

.el-transfer {
  .el-transfer-panel__filter {
    .el-input__prefix {
      display: none;
    }
    .el-input__inner {
      height: 36px;
      line-height: 36px;
      padding: 0 20px;
    }
  }
  .el-transfer__button {
    min-width: initial;
  }
}

.el-slider {
  .el-slider__bar,
  .el-slider__runway {
    height: 12px;
    border-radius: 6px;
  }
  .el-slider__button-wrapper {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .el-slider__stop {
    width: 4px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 0;
  }
  .el-slider__marks-text {
    padding-top: 8px;
    white-space: nowrap;
  }
  .el-slider__button {
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    border-color: #8bb9f3;
    position: relative;
    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      // background-color: $themeColor;
    }
  }
}
.el-popover {
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  box-shadow: 0px 0px 24px rgba(0, 24, 119, 0.2);
}

.el-steps {
  .el-step {
    position: relative;
  }
  // .el-step__icon {
  //   width: 16px;
  //   height: 16px;
  // }
  // .is-horizontal .el-step__line {
  //   top: 50%;
  //   transform: translateY(-50%);
  // }
  // .el-step__icon-inner {
  //   font-size: 10px;
  // }
  .el-step__title {
    line-height: initial;
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translate(-50%, -100%);
    font-size: 18px;
  }
  .el-step__description {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
  }
}
.el-image {
  color: #fff;
}
